import re
s = "a b a_b"

print(re.findall(r"a.*?b",s))